#!/bin/sh
docker stop nginx-earth &&  \
docker rm nginx-earth && \
docker run -itd \
        --name nginx-earth \
        -p 80:80\
        -v /home/ubuntu/earth-ol/front/dist:/usr/share/nginx/html \
        -v /home/ubuntu/earth-ol/front/cofNginx/nginx.conf:/etc/nginx/nginx.conf \
        -v /home/ubuntu/earth-ol/front/cofNginx/default.conf:/etc/nginx/conf.d/default.conf \
        -v /home/ubuntu/earth-ol/front/cofNginx/logs:/var/log/nginx \
        -d nginx:1.22